package com.nclg.exam.mapper;

import com.nclg.exam.dto.UpdateUserDto;
import com.nclg.exam.entity.TUser;


public interface UserMapper {

    /**
     * 通过uAccount查询用户
     * @param uAccount
     * @return
     */
    TUser selectByAccount(String uAccount);

    /**
     * 注册用户
     * @param tUser
     * @return
     */
    int insertSelective(TUser tUser);

    /**
     * 通过uid查询用户
     * @param uId
     * @return
     */
    TUser selectByPrimaryKey(Long uId);

    /**
     * 修改密码
     * @param uId
     * @param uPassword
     * @return
     */
    int updatePwd(Long uId, String uPassword);

    /**
     * 修改个人信息
     * @param dto
     * @return
     */
    int updateByPrimaryKeySelective(UpdateUserDto dto);

}
